package com.taotie.thetoolofgluttony.common;

public class Coordinate {
	public static int firstX;
	public static int firstY;
	public static int firstZ;
	public static int secondX;
	public static int secondY;
	public static int secondZ;
	public static int generateX;
	public static int generateY;
	public static int generateZ;

	enum Boolean {
		firstBoolean(false, "firstBoolean"), secondBoolean(false, "secondBoolean"),
		generateBoolean(false, "generateBoolean"), completeBoolean(false, "completeBoolean");
		private boolean bool;
		private String name;

		private Boolean(boolean bool, String name) {
			this.bool = bool;
			this.name = name;
		}

		public boolean getBool() {
			return bool;
		}

		public void setBool(boolean bool) {
			this.bool = bool;
		}

		public String getName() {
			return name;
		}
	}

	public static void setFirstCoordinate(int x, int y, int z) {
		firstX = x;
		firstY = y;
		firstZ = z;
	}

	public static void setSecondCoordinate(int x, int y, int z) {
		secondX = x;
		secondY = y;
		secondZ = z;
	}

	public static void setGenerateCoordinate(int x, int y, int z) {
		generateX = x;
		generateY = y;
		generateZ = z;
	}

	public static void upBoolean(Boolean bool) {
		bool.setBool(true);
		if (bool.getName().equals("completeBoolean")) {
			Boolean.firstBoolean.setBool(false);
			Boolean.secondBoolean.setBool(false);
			Boolean.generateBoolean.setBool(false);
			Boolean.completeBoolean.setBool(false);
		}
	}
}
